<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改员工工资')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-salary-edit" th:object="${salary}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">工资发放月：</label>
                <div class="col-sm-8">
                    <input name="salaryMonth" th:field="*{salaryMonth}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">理应在职天数：</label>
                <div class="col-sm-8">
                    <input name="dutyWorkDay" th:field="*{dutyWorkDay}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">实际在职天数：</label>
                <div class="col-sm-8">
                    <input name="actualWorkDay" th:field="*{actualWorkDay}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">基本工资：</label>
                <div class="col-sm-8">
                    <input name="baseSalary" th:field="*{baseSalary}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生活补贴：</label>
                <div class="col-sm-8">
                    <input name="livingAllowance" th:field="*{livingAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">餐费补贴：</label>
                <div class="col-sm-8">
                    <input name="mealAllowance" th:field="*{mealAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交通补贴：</label>
                <div class="col-sm-8">
                    <input name="transportationAllowance" th:field="*{transportationAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">通讯补贴：</label>
                <div class="col-sm-8">
                    <input name="communicationAllowance" th:field="*{communicationAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">管理岗位津贴：</label>
                <div class="col-sm-8">
                    <input name="managementPositionAllowance" th:field="*{managementPositionAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">技术岗位津贴：</label>
                <div class="col-sm-8">
                    <input name="technologyPositionAllowance" th:field="*{technologyPositionAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">外派津贴：</label>
                <div class="col-sm-8">
                    <input name="expatriateAllowance" th:field="*{expatriateAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">加班小时数：</label>
                <div class="col-sm-8">
                    <input name="overtimeHours" th:field="*{overtimeHours}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">加班费：</label>
                <div class="col-sm-8">
                    <input name="overtimePay" th:field="*{overtimePay}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">迟到分钟数：</label>
                <div class="col-sm-8">
                    <input name="lateDeductionMinutes" th:field="*{lateDeductionMinutes}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">迟到扣除金额：</label>
                <div class="col-sm-8">
                    <input name="lateDeduction" th:field="*{lateDeduction}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事假天数：</label>
                <div class="col-sm-8">
                    <input name="personalLeaveDays" th:field="*{personalLeaveDays}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事假扣款金额：</label>
                <div class="col-sm-8">
                    <input name="personalLeaveDeduction" th:field="*{personalLeaveDeduction}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">病假天数：</label>
                <div class="col-sm-8">
                    <input name="sickLeaveDays" th:field="*{sickLeaveDays}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">病假扣款金额：</label>
                <div class="col-sm-8">
                    <input name="sickLeaveDeduction" th:field="*{sickLeaveDeduction}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">个税扣除：</label>
                <div class="col-sm-8">
                    <input name="personalTaxDeduction" th:field="*{personalTaxDeduction}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">五险一金扣除金额：</label>
                <div class="col-sm-8">
                    <input name="fiveInsurancesAndOneFund" th:field="*{fiveInsurancesAndOneFund}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">应发合计金额：</label>
                <div class="col-sm-8">
                    <input name="needPayTotal" th:field="*{needPayTotal}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">实发合计金额：</label>
                <div class="col-sm-8">
                    <input name="acctralPayTotal" th:field="*{acctralPayTotal}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">银行账号：</label>
                <div class="col-sm-8">
                    <input name="bankAccount" th:field="*{bankAccount}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/salary";
        $("#form-salary-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-salary-edit').serialize());
            }
        }
    </script>
</body>
</html>